
import { apiApi } from '@/request/instances'

export async function getApiList() {
  return await apiApi.get('/api/list')
}


export async function createApi(data: any) {
    return await apiApi.post('/api', data)
}

export async function updateApi(id: string, data: any) {
  return await apiApi.put(`/api/${id}`, data)
}

export async function deleteApi(id: string) {
  return await apiApi.delete(`/api/${id}`)
}

export async function getApiDetail(id: string) {
  return await apiApi.get(`/api/${id}`)
}